const express = require("express");
const bodyParser = require('body-parser');
const mysql = require('./router/pool.js');
const userRouter = require('./router/user.js');
const laptopRouter = require("./router/laptop.js");
const app = express();
app.listen(8080);
app.use(bodyParser.urlencoded({
	extended:true
}))
console.log(11);
app.use("/v1/users",userRouter);
app.use("/v1/laptop",laptopRouter);
app.use((err,req,res,next)=>{
	res.send({code:500,msg:"服务器端错误"});
})

